#是否拥有足够货币
execute store result score #voidogenCount temp run clear @p[tag=player] *[custom_data~{id:"voidogen"}] 0
execute store result score #needVoidogen temp run data get entity @n[tag=smithingTable.itemSlot,distance=..3,type=item_display] item.components."minecraft:custom_data".forge.price
execute if score #voidogenCount temp >= #needVoidogen temp run return run function vs:system/game_ctrol/smithing_table/forge/test/voidogen_count_reset
function vs:system/game_ctrol/smithing_table/forge/test/voidogen_count_reset
return fail